package com.jews.securityleam.starter.base;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * @author JewsChen
 * @title: BaseJwtUser
 * @description: 账号基础信息
 * @date 2023/6/19 18:05
 */
@Data
public class BaseJwtUser implements Serializable {

    /**
     * 用户Id
     */
    private Integer userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 额外信息
     */
    private Map<String, String> extInfo;

    /**
     * 权限信息
     */
    private Collection<? extends GrantedAuthority> authorities;
}
